<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SAAS - 领先的企业管理云SaaS公司</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: url('./picture/bg.jpg') no-repeat center center fixed;
            background-size: cover;
            position: relative;
            overflow-x: hidden;
            color: white;
        }

        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
            z-index: -1;
        }

        /* Navbar */
        .navbar {
            background: transparent !important;
            backdrop-filter: blur(10px);
            padding: 15px 0;
            box-shadow: none;
        }

        .navbar-menu li a {
            color: white !important;
        }

        .navbar-menu li a:hover {
            color: #007bff !important;
        }

        .navbar-phone {
            color: white !important;
        }

        .navbar-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .navbar-left {
            display: flex;
            align-items: center;
        }

        .navbar-logo {
            display: flex;
            align-items: center;
            font-size: 26px;
            font-weight: bold;
            color: white;
            text-decoration: none;
            margin-right: 40px;
        }

        .navbar-logo i {
            margin-right: 8px;
        }

        .navbar-menu {
            display: flex;
            list-style: none;
            gap: 30px;
            margin-top: 10px;
        }

        .navbar-menu li a {
            color: white !important;
            text-decoration: none;
            font-weight: 500;
            font-size: 16px;
            transition: color 0.3s ease;
        }

        .navbar-menu li a:hover {
            color: #007bff !important;
        }

        .navbar-right {
            display: flex;
            align-items: center;
        }

        .navbar-phone {
            display: flex;
            align-items: center;
            color: white !important;
            font-weight: 500;
            font-size: 16px;
        }

        .navbar-phone i {
            margin-right: 5px;
        }

        /* Hero Section */
        .hero-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 100px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: calc(100vh - 80px);
        }

        /* Left Content */
        .hero-left {
            flex: 1;
            padding-right: 80px;
        }

        .company-logo {
            font-size: 56px;
            font-weight: bold;
            margin-bottom: 20px;
            letter-spacing: -1px;
        }

        .company-tagline {
            font-size: 28px;
            margin-bottom: 40px;
            opacity: 0.9;
            line-height: 1.3;
        }

        .features {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 50px;
        }

        .feature-item {
            display: flex;
            align-items: center;
            font-size: 18px;
            line-height: 1.4;
        }

        .feature-item i {
            color: #28a745;
            margin-right: 12px;
            font-size: 20px;
        }

        /* Form Card */
        .hero-right {
            flex: 0 0 420px;
        }

        .form-card {
            background: rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .form-title {
            font-size: 26px;
            font-weight: bold;
            color: white;
            margin-bottom: 25px;
            text-align: center;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 12px;
            color: white;
            font-weight: 500;
            font-size: 16px;
        }

        .form-control {
            width: 100%;
            padding: 15px 18px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            height: auto;
            line-height: 1.5;
        }

        .form-control:focus {
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
            background: rgba(255, 255, 255, 0.15);
        }

        .form-control::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        .input-row {
            display: flex;
            gap: 15px;
            align-items: stretch;
        }

        .input-row .form-control {
            flex: 1;
            min-width: 0;
        }

        .btn-get-code {
            padding: 15px 20px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s ease;
            white-space: nowrap;
            font-weight: 500;
        }

        .btn-get-code:hover {
            background-color: #0056b3;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .checkbox-group input[type="checkbox"] {
            margin-right: 12px;
            transform: scale(1.2);
        }

        .checkbox-group label {
            margin: 0;
            color: white;
            font-size: 14px;
            font-weight: 400;
        }

        .checkbox-group a {
            color: #007bff;
            text-decoration: none;
            font-weight: 500;
        }

        .checkbox-group a:hover {
            text-decoration: underline;
        }

        .btn-primary {
            width: 100%;
            padding: 16px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            letter-spacing: 0.5px;
        }

        .btn-primary:hover {
            background-color: #0056b3;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
        }

        /* Platform/Tenant Switch */
        .platform-switch {
            margin-bottom: 15px;
        }

        .platform-switch .switch-title {
            color: white;
            font-size: 18px;
            margin-bottom: 15px;
            text-align: center;
            font-weight: 500;
        }

        .switch-buttons {
            display: flex;
            gap: 10px;
            background: rgba(255, 255, 255, 0.1);
            padding: 4px;
            border-radius: 6px;
            margin-bottom: 15px;
        }

        .switch-btn {
            flex: 1;
            padding: 10px;
            background: transparent;
            border: none;
            border-radius: 4px;
            color: white;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .switch-btn.active {
            background: #007bff;
            color: white;
            font-weight: 500;
        }

        .switch-btn:hover:not(.active) {
            background: rgba(0, 123, 255, 0.3);
        }

        /* Login Type Switch */
        .login-type-switch {
            margin-bottom: 25px;
        }

        .login-tabs {
            display: flex;
            gap: 10px;
            background: rgba(255, 255, 255, 0.1);
            padding: 4px;
            border-radius: 6px;
        }

        .login-tab {
            flex: 1;
            padding: 10px;
            background: transparent;
            border: none;
            border-radius: 4px;
            color: white;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .login-tab.active {
            background: #007bff;
            color: white;
            font-weight: 500;
        }

        .login-tab:hover:not(.active) {
            background: rgba(0, 123, 255, 0.3);
        }

        /* Login Forms */
        .login-form {
            display: none;
        }

        .login-form.active {
            display: block;
        }

        /* Login Type Link */
        .login-type-link {
            text-align: center;
            margin-top: 10px;
        }

        .login-type-link a {
            color: #007bff;
            text-decoration: none;
            font-size: 14px;
        }

        .login-type-link a:hover {
            text-decoration: underline;
        }

        /* Third Party Login */
        .third-party-login {
            margin-top: 20px;
        }

        .divider {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: rgba(255, 255, 255, 0.2);
        }

        .divider span {
            color: white;
            padding: 0 15px;
            font-size: 14px;
        }

        .third-party-buttons {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
        }

        .third-party-btn {
            padding: 12px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            color: white;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            transition: all 0.3s ease;
            font-size: 14px;
        }

        .third-party-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        .third-party-btn i {
            font-size: 20px;
        }

        .third-party-btn.wechat {
            color: #28a745;
        }

        .third-party-btn.qq {
            color: #1da1f2;
        }

        .third-party-btn.github {
            color: #333;
        }

        /* Forgot Password */
        .forgot-password {
            color: #007bff;
            text-decoration: none;
            font-size: 14px;
        }

        .forgot-password:hover {
            text-decoration: underline;
        }

        /* Floating Buttons */
        .floating-buttons {
            position: fixed;
            right: 20px;
            bottom: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .floating-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #007bff;
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            box-shadow: 0 2px 15px rgba(0, 123, 255, 0.4);
            transition: all 0.3s ease;
        }

        .floating-btn:hover {
            background-color: #0056b3;
            transform: scale(1.1);
        }

        .floating-btn.chat {
            background-color: #28a745;
        }

        .floating-btn.chat:hover {
            background-color: #218838;
        }

        /* Windows Activation */
        .windows-activation {
            position: fixed;
            bottom: 20px;
            right: 90px;
            background: rgba(255, 255, 255, 0.9);
            padding: 10px 15px;
            border-radius: 5px;
            font-size: 12px;
            color: #666;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .windows-activation a {
            color: #007bff;
            text-decoration: none;
        }

        .windows-activation a:hover {
            text-decoration: underline;
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .hero-section {
                flex-direction: column;
                text-align: center;
                padding: 60px 20px;
            }

            .hero-left {
                padding-right: 0;
                margin-bottom: 40px;
            }

            .hero-right {
                flex: 0 0 100%;
            }

            .features {
                grid-template-columns: 1fr;
                justify-items: center;
            }

            .navbar-menu {
                display: none;
            }
        }

        @media (max-width: 576px) {
            .company-logo {
                font-size: 36px;
            }

            .company-tagline {
                font-size: 20px;
            }

            .form-card {
                padding: 25px 20px;
            }

            .input-row {
                flex-direction: column;
            }

            .btn-get-code {
                width: 100%;
            }

            .windows-activation {
                right: 20px;
                bottom: 130px;
            }
        }
    </style>
</head>
<body>
    <!-- Navbar -->
    <nav class="navbar">
        <div class="navbar-container">
            <div class="navbar-left">
                <a href="#" class="navbar-logo">
                    <i class="fa fa-cube"></i>
                    <span>SAAS</span>
                </a>
                <ul class="navbar-menu">
                    <li><a href="#">首页</a></li>
                    <li><a href="#">财务云</a></li>
                    <li><a href="#">供应链云</a></li>
                    <li><a href="#">人力云</a></li>
                    <li><a href="#">税务云</a></li>
                    <li><a href="#">制造云</a></li>
                </ul>
            </div>
        </div>
    </nav>

    <!-- Hero Section -->
    <section class="hero-section">
        <!-- Left Content -->
        <div class="hero-left">
            <div class="company-logo">SAAS</div>
            <div class="company-tagline">领先的企业管理云SaaS公司</div>
            <div class="features">
                <div class="feature-item">
                    <i class="fa fa-check-circle"></i>
                    <span>30余年品质保证</span>
                </div>
                <div class="feature-item">
                    <i class="fa fa-check-circle"></i>
                    <span>53%的专精特新企业选择SAAS</span>
                </div>
                <div class="feature-item">
                    <i class="fa fa-check-circle"></i>
                    <span>500强企业的新选择</span>
                </div>
                <div class="feature-item">
                    <i class="fa fa-check-circle"></i>
                    <span>服务740万+企业</span>
                </div>
                <div class="feature-item">
                    <i class="fa fa-check-circle"></i>
                    <span>云服务市占率稳居国内厂商第一</span>
                </div>
                <div class="feature-item">
                    <i class="fa fa-check-circle"></i>
                    <span>获信通院、IDC等知名研究机构首推</span>
                </div>
            </div>
        </div>

        <!-- Right Content - Form -->
        <div class="hero-right">
            <div class="form-card">
                <!-- Platform/Tenant Switch -->
                <div class="platform-switch">
                    <div class="switch-title">登录类型</div>
                    <div class="switch-buttons">
                        <button type="button" class="switch-btn active" data-type="platform">平台端</button>
                        <button type="button" class="switch-btn" data-type="tenant">租户端</button>
                    </div>
                </div>

                <!-- Password Login Form -->
                <div class="login-form active" id="password-login">
                    <form>
                        <div class="form-group tenant-id-field" style="display: none;">
                            <label for="tenant-id">租户ID</label>
                            <input type="text" id="tenant-id" class="form-control" placeholder="请输入租户ID">
                        </div>
                        <div class="form-group">
                            <label for="username">用户名</label>
                            <input type="text" id="username" class="form-control" placeholder="请输入用户名">
                        </div>
                        <div class="form-group">
                            <label for="password">密码</label>
                            <input type="password" id="password" class="form-control" placeholder="请输入密码">
                        </div>
                        <div class="checkbox-group">
                            <input type="checkbox" id="remember">
                            <label for="remember">记住我</label>
                            <a href="#" class="forgot-password">忘记密码？</a>
                        </div>
                        <button type="submit" class="btn-primary">登录</button>
                        <div class="login-type-link">
                            <a href="#" id="switch-to-sms">短信验证码登录</a>
                        </div>
                    </form>
                </div>

                <!-- SMS Login Form -->
                <div class="login-form" id="sms-login">
                    <form>
                        <div class="form-group tenant-id-field" style="display: none;">
                            <label for="sms-tenant-id">租户ID</label>
                            <input type="text" id="sms-tenant-id" class="form-control" placeholder="请输入租户ID">
                        </div>
                        <div class="form-group">
                            <label>中国 +86</label>
                            <input type="tel" class="form-control" placeholder="请输入手机号">
                        </div>
                        <div class="form-group">
                            <label>验证码</label>
                            <div class="input-row">
                                <input type="text" id="sms-verification" class="form-control" placeholder="请输入验证码">
                                <button type="button" class="btn-get-code">获取验证码</button>
                            </div>
                        </div>
                        <button type="submit" class="btn-primary">登录</button>
                        <div class="login-type-link">
                            <a href="#" id="switch-to-password">账号密码登录</a>
                        </div>
                    </form>
                </div>

                <!-- Third Party Login -->
                <div class="third-party-login">
                    <div class="divider">
                        <span>其他登录方式</span>
                    </div>
                    <div class="third-party-buttons">
                        <button type="button" class="third-party-btn wechat">
                            <i class="fa fa-weixin"></i>
                            <span>微信登录</span>
                        </button>
                        <button type="button" class="third-party-btn qq">
                            <i class="fa fa-qq"></i>
                            <span>QQ登录</span>
                        </button>
                        <button type="button" class="third-party-btn github">
                            <i class="fa fa-github"></i>
                            <span>GitHub登录</span>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Floating Buttons -->
    <div class="floating-buttons">
        <button class="floating-btn chat" title="在线咨询">
            <i class="fa fa-comment"></i>
        </button>
        <button class="floating-btn" title="回到顶部">
            <i class="fa fa-arrow-up"></i>
        </button>
    </div>
    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // Smooth scroll to top
        document.querySelector('.floating-btn:not(.chat)').addEventListener('click', function() {
            window.scrollTo({
                top: 0,
                behavior: 'smooth'
            });
        });

        // Chat button functionality
        document.querySelector('.floating-btn.chat').addEventListener('click', function() {
            alert('在线咨询功能开发中...');
        });

        // Platform/Tenant Switch
        const switchBtns = document.querySelectorAll('.switch-btn');
        const tenantIdFields = document.querySelectorAll('.tenant-id-field');
        
        switchBtns.forEach(btn => {
            btn.addEventListener('click', function() {
                switchBtns.forEach(b => b.classList.remove('active'));
                this.classList.add('active');
                const type = this.dataset.type;
                
                // Show/hide all tenant ID fields based on selected type
                tenantIdFields.forEach(field => {
                    field.style.display = type === 'tenant' ? 'block' : 'none';
                });
                
                console.log('切换到' + (type === 'platform' ? '平台端' : '租户端'));
            });
        });

        // Login Type Switch via Link
        const loginForms = document.querySelectorAll('.login-form');
        
        // Switch to SMS login
        document.getElementById('switch-to-sms').addEventListener('click', function(e) {
            e.preventDefault();
            loginForms.forEach(form => form.classList.remove('active'));
            document.getElementById('sms-login').classList.add('active');
        });
        
        // Switch to Password login
        document.getElementById('switch-to-password').addEventListener('click', function(e) {
            e.preventDefault();
            loginForms.forEach(form => form.classList.remove('active'));
            document.getElementById('password-login').classList.add('active');
        });

        // Third Party Login Buttons
        const thirdPartyBtns = document.querySelectorAll('.third-party-btn');
        thirdPartyBtns.forEach(btn => {
            btn.addEventListener('click', function() {
                const type = this.querySelector('span').textContent;
                alert(type + '功能开发中...');
            });
        });
    </script>
</body>
</html>